package com.kkwrite.regimen.common.entity.dto.income;

import java.io.Serializable;

/**
 * Created by Ron on 2018/8/21 19:36.
 *
 * @author Ron
 */
public class ShopExtractCashInDTO implements Serializable {
    private static final long serialVersionUID = -7783504112720322113L;
    private Double amount;

    public boolean isInvalid() {
        return amount == null || amount <= 0;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "ShopExtractCashInDTO{" +
                "amount=" + amount +
                '}';
    }
}
